
const mongoose = require("mongoose");

const schema = new mongoose.Schema({//商品二级类型集合(typeTwo)
    typeTwo:String,//分类名称
    Img:String,//分类图片
    typeOneId: {//从属的一级类型
        type: mongoose.Schema.Types.ObjectId,
        ref: "typeOne"
    },
})
mongoose.model("typeTwo", schema, "typeTwo");